 <!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户管理</title>
    <link href="../../../plugins/layui/css/layui.css" rel="stylesheet" media="all" />
    <link href="../../../css/components.min.css" rel="stylesheet" media="all" />
    <link href="../../../plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all" />
    <link rel="stylesheet" href="../../../css/font_tnyc012u2rlwstt9.css" media="all" />
</head>

<body>
<script src="../../../js/base.js"></script>
<script src="../../../plugins/layui/layui.js"></script>
<script src="../../../plugins/jquery.min.js"></script>
<script src="user.js"></script>

<div class="portlet light" id="form_wizard_1">
    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green sbold uppercase">用户管理</span>
        </div>
    </div>
    <div class="div-inline" style="clear:both">
		<form class="layui-form">
		    <div class="layui-form-item">
		        <div class="layui-inline">
		        	<label class="layui-form-label" style="width:120px">用户名或手机号：</label>
		            <div class="layui-input-inline">
		                <input name="query" placeholder="用户名或手机号" class="layui-input">
		            </div>
		        </div>
		         <div class="layui-inline">
		        	<label class="layui-form-label" style="width:120px">组织机构：</label>
		            <div class="layui-input-inline">
		                <div id="orgNo"></div>
		            </div>
		        </div>
		        <div class="layui-inline">
		        	<label class="layui-form-label">角色：</label>
		            <div class="layui-input-inline" style="width:250px">
		                <div id="roles"></div>
		            </div>
		        </div>
		     </div>
		    <div class="layui-form-item">
		        <div class="layui-inline">
		            <label class="layui-form-label" style="width:120px">状态：</label>
		            <div class="layui-input-inline" >
		                <select name="status">
		                    <option value="">全部</option>
		                    <option value="0">正常</option>
		                    <option value="1">冻结</option>
		                    <option value="2">锁定</option>
		                </select>
		            </div>
		        </div>
		        <div class="layui-inline">
		            <div class="layui-input-inline" >
		                <button type="button" class="layui-btn" lay-submit="" lay-filter="search"><i class="fa fa-search"></i> 查询</button>
		            	<button type="button" class="layui-btn layui-btn-normal" onclick="addUserPage()"><i class="fa fa-plus-square"></i> 新增</button>
		            </div>
		        </div>
		    </div>
		</form>
    </div>
    <div class="portlet-body">
        <div class="dataTables_wrapper" style="margin-top: 0px!important" >
			<table id="userTable" class="layui-table">
			</table>
        </div>
    </div>
</div>
<script type="text/html" id="statusTp">
    {{#  if(d.status === 0){ }}
        <span style="color: #009688"> 正常 </span>
    {{#  } else if(d.status === 1) { }}
        <span style="color: #FFB800"> 冻结 </span>
    {{#  } else if(d.status === 2) { }}
        <span style="color: #FFB800"> 锁定 </span>
    {{#  } else { }}
        <span>未知状态</span>
    {{#  } }}
</script>

<script type="text/html" id="operateTp">
    <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" onclick="addUserPage({{d.id}})">
        <i class="layui-icon">&#xe642;</i>修改
    </button>
    <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="resetPassPage({{d.id}})">
        <i class="layui-icon">&#xe673;</i>重置密码
    </button>
    {{#  if(d.status == 0 || d.status == 2){ }}
    <input type="checkbox" name="lock" value="{{d.id}}" title="锁定" lay-filter="userLock" {{ d.status == 2 ? 'checked' : '' }}>
    {{#  } }}
</script>
</body>

</html>